<!DOCTYPE html>
<html lang="en-US">
    <head>
        <title>Email::Valid - Check validity of Internet email addresses - metacpan.org</title>
        <link rel="preload" as="fetch" href="https://metacpan.org/account/login_status" crossorigin="anonymous" />
        <link href="https://metacpan.org/_assets/b8ccceeed47a0652049703d99326a9cea4933443.css" rel="stylesheet" type="text/css">
        <script src="https://metacpan.org/_assets/6bfedafe2d7caa915b7d84f61b45936818e3242e.js" type="text/javascript" defer></script>
        <link rel="alternate" type="application/rss+xml" title="Recent CPAN Uploads of Email-Valid - MetaCPAN" href="https://metacpan.org/dist/Email-Valid/releases.rss" />
        <link rel="canonical" href="./Email::Valid.html" />
        <meta name="description" content="Check validity of Internet email addresses" />
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=5">
        <link rel="shortcut icon" href="https://metacpan.org/static/icons/favicon.ico">
        <link rel="apple-touch-icon" sizes="152x152" href="https://metacpan.org/static/icons/apple-touch-icon.png">
        <link rel="search" href="https://metacpan.org/static/opensearch.xml" type="application/opensearchdescription+xml" title="MetaCPAN">
        <script>
          (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
          (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
          m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
          })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

          (function(skey, ga_id){
            ga('create', ga_id, {
              siteSpeedSampleRate : 100,
              storage             : 'none',
              clientId            : localStorage.getItem(skey)
            });
            ga(function(tracker) {
              localStorage.setItem(skey, tracker.get('clientId'));
            });
            ga('send', 'pageview');
          })('ga:clientId', 'UA-27829474-1');
        </script>
<meta name="twitter:card"        content="summary" />
<meta name="twitter:url"         content="https://metacpan.org/pod/Email::Valid" />
<meta name="twitter:title"       content="Email::Valid" />
<meta name="twitter:description" content="Check validity of Internet email addresses" />
<meta name="twitter:site"        content="metacpan" />
    </head>
    <body>
        <nav class="navbar navbar-default" role="navigation">
            <div class="header-logo-large hidden-xs">
              <a href="https://metacpan.org/" tabindex="0">
                <svg class="logo" aria-label="MetaCPAN">
                  <use class="logo" href="/static/images/metacpan-logo.svg#logo" />
                </svg>
              </a>
            </div>
            <div class="header-logo-icon visible-xs">
              <a href="https://metacpan.org/">
                <svg class="logo" aria-label="MetaCPAN">
                  <use class="logo" href="/static/images/metacpan-logo.svg#dots" />
                </svg>
              </a>
            </div>
            <ul class="nav navbar-nav menu-items hidden-xs hidden-sm">
              <li><a href="https://metacpan.org/about">About</a></li>
              <li><a href="https://metacpan.org/about/sponsors">Sponsor</a></li>
              <li><a href="https://grep.metacpan.org/">grep::cpan</a></li>
              <li><a href="https://metacpan.org/recent">Recent</a></li>
              <li><a href="https://metacpan.org/about/faq">FAQ</a></li>
              <li><a href="https://metacpan.org/tools">Tools</a></li>
              <li><a href="https://fastapi.metacpan.org/">API</a></li>
            </ul>
            <ul class="nav navbar-nav navbar-right">
                <button type="button" class="searchbar-btn visible-xs visible-sm">
                    <i class="fa fa-search button-fa-icon"></i>
                </button>
                <form action="https://metacpan.org/search" class="searchbar-form visible-md visible-lg search-form form-horizontal">
                   <input type="hidden" name="size" id="metacpan_search-size" value="20">
                  <div class="form-group">
                      <div class="search-group">
                        <i class="fa fa-search"></i>
                        <input type="text" name="q" placeholder="Search the CPAN" size="41" autocorrect="off" autocapitalize="off" spellcheck="false" id="metacpan_search-input" class="form-control" value="">
                      </div>
                  </div>
                </form>
                    <li class="icon-slidepanel visible-xs visible-sm">
                      <button data-toggle="slidepanel" data-target=".slidepanel">
                        <span class="button-fa-icon">
                          <i class="fa fa-bars slidepanel-open"></i>
                          <i class="fa fa-times slidepanel-close"></i>
                        </span>
                      </button>
                    </li>
                <form action="https://metacpan.org/account/logout" method="POST" id="metacpan-logout"></form>
                <li class="dropdown logged_in" style="display: none;">
                    <button type="button" class="dropdown-toggle" data-toggle="dropdown">
                      <i class="fa fa-user button-fa-icon logged-in-icon" aria-hidden="true"></i>
                      <i class="fas fa-chevron-down"></i>
                    </button>
                    <ul class="dropdown-menu">
                        <li><a href="https://metacpan.org/account/identities">Identities</a></li>
                        <li><a href="https://metacpan.org/account/profile">Profile</a></li>
                        <li><a href="https://metacpan.org/account/favorite/list">Favorites</a></li>
                        <li>
                            <a href="./Email::Valid.html#" type="button" onclick="$('#metacpan-logout').submit(); return false">
                              Logout
                            </a>
                        </li>
                    </ul>
                </li>
                <li class="dropdown logged_out" style="display: none;">
                    <button type="button" class="dropdown-toggle" data-toggle="dropdown">
                      <i class="fa fa-user button-fa-icon" aria-hidden="true"></i>
                      <i class="fas fa-chevron-down"></i>
                    </button>
                    <ul class="dropdown-menu">
                        <li>
                            <a href="https://metacpan.org/login/github">
                                <i class="fab fa-github fa-fw"></i>
                                GitHub
                            </a>
                        </li>
                        <li>
                            <a href="https://metacpan.org/login/twitter">
                                <i class="fab fa-twitter fa-fw"></i>
                                Twitter
                            </a>
                        </li>
                        <li>
                            <a href="https://metacpan.org/login/google">
                                <i class="fab fa-google fa-fw"></i>
                                Google
                            </a>
                        </li>
                    </ul>
                </li>
                <li class="dropdown logged_placeholder">
                    <button>
                      <i class="fa fa-user button-fa-icon" aria-hidden="true"></i>
                    </button>
                </li>
            </ul>
        </nav>
        <div class="page-content ">
          <!--
          <div class="top-notify-banner">
            <i class="fas fa-info-circle"></i>
          </div>
          -->
          <nav class="sidebar">
            <div class="slidepanel">
              <ul class="nav-list ">
    <li class="nav-header no-margin-top">
      <div class="ttip" data-toggle="tooltip" data-placement="bottom" title="The date that this version of Email-Valid was released.">
      <span class="relatize">20 Jan 2024 21:41:21 UTC</span>
    </li>
  <li>
    Distribution: <a href="https://metacpan.org/dist/Email-Valid">Email-Valid</a>
  </li>
  <li>
    Module version: 1.204
  </li>
  <li>
    <a data-keyboard-shortcut="g s" href="https://metacpan.org/dist/Email-Valid/source/lib/Email/Valid.pm">Source</a>
    (<a href="https://metacpan.org/dist/Email-Valid/source/lib/Email/Valid.pm?raw=1">raw</a>)
  </li>
  <li>
    <a data-keyboard-shortcut="g b" href="https://metacpan.org/dist/Email-Valid/source/lib/Email">Browse</a>
    (<a href="https://metacpan.org/dist/Email-Valid/source/lib/Email?raw=1">raw</a>)
  </li>
    <li>
      <a data-keyboard-shortcut="g c" href="https://metacpan.org/dist/Email-Valid/changes">Changes</a>
    </li>
    <li>
      <a rel="noopener nofollow" class="nopopup" href="https://github.com/Perl-Email-Project/Email-Valid">Homepage</a>
    </li>
    <li>
      <a class="nopopup" href="https://metacpan.org/dist/Email-Valid/contribute">How to Contribute</a>
    </li>
    <li>
        <a rel="noopener nofollow" data-keyboard-shortcut="g r" href="https://github.com/Perl-Email-Project/Email-Valid">Repository</a>
    </li>
    <li>
      <a rel="noopener nofollow" data-keyboard-shortcut="g i" href="https://github.com/Perl-Email-Project/Email-Valid/issues">Issues</a>
      (17)
    </li>
    <li>
      <a rel="noopener nofollow" href="http://matrix.cpantesters.org/?dist=Email-Valid+1.204" title="Matrix">Testers</a>
        <span title="(pass / fail / na)">(<a rel="noopener nofollow" href="https://www.cpantesters.org/distro/E/Email-Valid.html?oncpan=1&amp;distmat=1&amp;version=1.204&amp;grade=2" style="color: #090">372</a> / <a rel="noopener nofollow" href="https://www.cpantesters.org/distro/E/Email-Valid.html?oncpan=1&amp;distmat=1&amp;version=1.204&amp;grade=3" style="color: #900">19</a> / <a rel="noopener nofollow" href="https://www.cpantesters.org/distro/E/Email-Valid.html?oncpan=1&amp;distmat=1&amp;version=1.204&amp;grade=4">0</a>)</span>
    </li>
    <li>
      <a rel="noopener nofollow" href="http://cpants.cpanauthors.org/release/RJBS/Email-Valid-1.204">Kwalitee</a>
    </li>
    <li>
      <div class="ttip" data-toggle="tooltip" data-placement="bottom" title="The # people with an indexing permission on Email-Valid who have released something to CPAN in the last 2 years (i.e. the # people likely able to release critical fixes in a timely manner)">
      Bus factor: 1
      </div>
    </li>
    <li>
      License: perl_5
    </li>
    <li>
      Perl: v5.12.0
    </li>
    <li class="nav-header">Activity</li>
    <li>
<div class="activity-graph">
    <img src="https://metacpan.org/dist/Email-Valid/activity.svg?res=month" />
    <div class="comment">24 month</div>
</div>
    </li>
    <li class="nav-header">Tools</li>
    <li>
      <a itemprop="downloadUrl" href="https://cpan.metacpan.org/authors/id/R/RJ/RJBS/Email-Valid-1.204.tar.gz">
      Download (<span itemprop="fileSize">34.83KB</span>)</a>
    </li>
    <li>
      <a href="https://explorer.metacpan.org/?url=%2Fmodule%2FRJBS%2FEmail-Valid-1.204%2Flib%2FEmail%2FValid.pm">
        MetaCPAN Explorer
      </a>
    </li>
    <li>
      <a href="https://metacpan.org/dist/Email-Valid/permissions">
        Permissions
      </a>
    </li>
    <li>
      <a href="https://metacpan.org/dist/Email-Valid/releases.rss">
        Subscribe to distribution
      </a>
    </li>
    <li>
      <button class="btn btn-link" data-toggle="modal" data-target="#metacpan_install-instructions-dialog">
        Install Instructions
      </button>
    </li>
    <li>
      <form action="https://metacpan.org/search">
        <input type="hidden" name="q" value="dist:Email-Valid">
        <input type="search" name="q" placeholder="Search distribution" class="form-control tool-bar-form">
        <input type="submit" style="display: none">
      </form>
    </li>
    <li>
      <form action="https://grep.metacpan.org/search">
        <input type="hidden" name="qd" value="Email-Valid">
        <input type="hidden" name="source" value="metacpan">
        <input type="search" name="q" placeholder="grep distribution" class="form-control tool-bar-form">
        <input type="submit" style="display: none">
     </form>
    </li>
    <li class="version-jump">
<select onchange="document.location.href=&#39;/release/&#39;+this.value+&#39;/view/lib/Email/Valid.pm&#39;" class="form-control tool-bar-form">
  <option disabled selected>Jump to version</option>
<option
  disabled
  value="RJBS/Email-Valid-1.204"
>1.204
  (RJBS on 2024-01-20)</option>
<option
  
  value="RJBS/Email-Valid-1.203"
>1.203
  (RJBS on 2022-05-29)</option>
<option
  
  value="MAURICE/Email-Valid-0.15"
>0.15
  (MAURICE on 2003-09-08)</option>
<option
  
  value="MAURICE/Email-Valid-0.14"
>0.14
  (MAURICE on 2002-07-03)</option>
<optgroup label="BackPAN">'
<option
  
  value="RJBS/Email-Valid-1.202"
>1.202
  (RJBS on 2016-09-26)</option>
<option
  
  value="RJBS/Email-Valid-1.201"
>1.201
  (RJBS on 2016-09-22)</option>
<option
  
  value="RJBS/Email-Valid-1.200"
>1.200
  (RJBS on 2016-03-27)</option>
<option
  
  value="RJBS/Email-Valid-1.199"
>1.199
  (RJBS on 2016-03-27)</option>
<option
  
  value="RJBS/Email-Valid-1.198"
>1.198
  (RJBS on 2015-10-26)</option>
<option
  
  value="RJBS/Email-Valid-1.197"
>1.197
  (RJBS on 2015-10-17)</option>
<option
  
  value="RJBS/Email-Valid-1.196"
>1.196
  (RJBS on 2015-02-06)</option>
<option
  
  value="RJBS/Email-Valid-1.195"
>1.195
  (RJBS on 2014-09-01)</option>
<option
  
  value="RJBS/Email-Valid-1.194"
>1.194
  (RJBS on 2014-05-28)</option>
<option
  
  value="RJBS/Email-Valid-1.193"
>1.193
  (RJBS on 2014-03-27)</option>
<option
  
  value="RJBS/Email-Valid-1.192"
>1.192
  (RJBS on 2013-09-08)</option>
<option
  
  value="RJBS/Email-Valid-1.191"
>1.191
  (RJBS on 2013-09-05)</option>
<option
  
  value="RJBS/Email-Valid-0.190"
>0.190
  (RJBS on 2012-03-27)</option>
<option
  
  value="RJBS/Email-Valid-0.189"
>0.189
  (RJBS on 2012-03-26)</option>
<option
  
  value="RJBS/Email-Valid-0.188"
>0.188
  (RJBS on 2012-03-16)</option>
<option
  
  value="RJBS/Email-Valid-0.187"
>0.187
  (RJBS on 2012-01-27)</option>
<option
  
  value="RJBS/Email-Valid-0.186"
>0.186
  (RJBS on 2012-01-22)</option>
<option
  
  value="RJBS/Email-Valid-0.185"
>0.185
  (RJBS on 2011-08-11)</option>
<option
  
  value="RJBS/Email-Valid-0.184"
>0.184
  (RJBS on 2010-06-11)</option>
<option
  
  value="RJBS/Email-Valid-0.183_001"
>0.183_001 DEV
  (RJBS on 2009-10-05)</option>
<option
  
  value="RJBS/Email-Valid-0.182"
>0.182
  (RJBS on 2009-08-04)</option>
<option
  
  value="RJBS/Email-Valid-0.181"
>0.181
  (RJBS on 2009-03-23)</option>
<option
  
  value="RJBS/Email-Valid-0.180"
>0.180
  (RJBS on 2009-01-16)</option>
<option
  
  value="RJBS/Email-Valid-0.179"
>0.179
  (RJBS on 2006-11-27)</option>
<option
  
  value="RJBS/Email-Valid-0.178"
>0.178
  (RJBS on 2006-11-25)</option>
<option
  
  value="RJBS/Email-Valid-0.177"
>0.177
  (RJBS on 2006-11-25)</option>
<option
  
  value="RJBS/Email-Valid-0.176"
>0.176
  (RJBS on 2006-07-28)</option>
<option
  
  value="RJBS/Email-Valid-0.175"
>0.175
  (RJBS on 2006-06-24)</option>
<option
  
  value="RJBS/Email-Valid-0.174"
>0.174
  (RJBS on 2006-06-19)</option>
<option
  
  value="RJBS/Email-Valid-0.173"
>0.173
  (RJBS on 2006-06-16)</option>
<option
  
  value="RJBS/Email-Valid-0.172"
>0.172
  (RJBS on 2006-06-13)</option>
<option
  
  value="RJBS/Email-Valid-0.171"
>0.171
  (RJBS on 2006-06-10)</option>
<option
  
  value="RJBS/Email-Valid-0.170"
>0.170
  (RJBS on 2006-06-09)</option>
<option
  
  value="RJBS/Email-Valid-0.16"
>0.16
  (RJBS on 2006-06-02)</option>
<option
  
  value="MAURICE/Email-Valid-0.13"
>0.13
  (MAURICE on 2001-01-16)</option>
<option
  
  value="MAURICE/Email-Valid-0.12"
>0.12
  (MAURICE on 1999-07-09)</option>
<option
  
  value="MAURICE/Email-Valid-0.08"
>0.08
  (MAURICE on 1999-01-19)</option>
<option
  
  value="MAURICE/Email-Valid-0.07"
>0.07
  (MAURICE on 1999-01-13)</option>
</optgroup>
</select>
    </li>
    <li class="version-diff">
<select onchange="document.location.href='/release/RJBS/Email-Valid-1.204/diff/' + encodeURIComponent(this.value) + '/lib/Email/Valid.pm'
" class="form-control tool-bar-form">
  <option disabled selected>Diff with version</option>
<option
  disabled
  value="RJBS/Email-Valid-1.204"
>1.204
  (RJBS on 2024-01-20)</option>
<option
  
  value="RJBS/Email-Valid-1.203"
>1.203
  (RJBS on 2022-05-29)</option>
<option
  
  value="MAURICE/Email-Valid-0.15"
>0.15
  (MAURICE on 2003-09-08)</option>
<option
  
  value="MAURICE/Email-Valid-0.14"
>0.14
  (MAURICE on 2002-07-03)</option>
<optgroup label="BackPAN">'
<option
  
  value="RJBS/Email-Valid-1.202"
>1.202
  (RJBS on 2016-09-26)</option>
<option
  
  value="RJBS/Email-Valid-1.201"
>1.201
  (RJBS on 2016-09-22)</option>
<option
  
  value="RJBS/Email-Valid-1.200"
>1.200
  (RJBS on 2016-03-27)</option>
<option
  
  value="RJBS/Email-Valid-1.199"
>1.199
  (RJBS on 2016-03-27)</option>
<option
  
  value="RJBS/Email-Valid-1.198"
>1.198
  (RJBS on 2015-10-26)</option>
<option
  
  value="RJBS/Email-Valid-1.197"
>1.197
  (RJBS on 2015-10-17)</option>
<option
  
  value="RJBS/Email-Valid-1.196"
>1.196
  (RJBS on 2015-02-06)</option>
<option
  
  value="RJBS/Email-Valid-1.195"
>1.195
  (RJBS on 2014-09-01)</option>
<option
  
  value="RJBS/Email-Valid-1.194"
>1.194
  (RJBS on 2014-05-28)</option>
<option
  
  value="RJBS/Email-Valid-1.193"
>1.193
  (RJBS on 2014-03-27)</option>
<option
  
  value="RJBS/Email-Valid-1.192"
>1.192
  (RJBS on 2013-09-08)</option>
<option
  
  value="RJBS/Email-Valid-1.191"
>1.191
  (RJBS on 2013-09-05)</option>
<option
  
  value="RJBS/Email-Valid-0.190"
>0.190
  (RJBS on 2012-03-27)</option>
<option
  
  value="RJBS/Email-Valid-0.189"
>0.189
  (RJBS on 2012-03-26)</option>
<option
  
  value="RJBS/Email-Valid-0.188"
>0.188
  (RJBS on 2012-03-16)</option>
<option
  
  value="RJBS/Email-Valid-0.187"
>0.187
  (RJBS on 2012-01-27)</option>
<option
  
  value="RJBS/Email-Valid-0.186"
>0.186
  (RJBS on 2012-01-22)</option>
<option
  
  value="RJBS/Email-Valid-0.185"
>0.185
  (RJBS on 2011-08-11)</option>
<option
  
  value="RJBS/Email-Valid-0.184"
>0.184
  (RJBS on 2010-06-11)</option>
<option
  
  value="RJBS/Email-Valid-0.183_001"
>0.183_001 DEV
  (RJBS on 2009-10-05)</option>
<option
  
  value="RJBS/Email-Valid-0.182"
>0.182
  (RJBS on 2009-08-04)</option>
<option
  
  value="RJBS/Email-Valid-0.181"
>0.181
  (RJBS on 2009-03-23)</option>
<option
  
  value="RJBS/Email-Valid-0.180"
>0.180
  (RJBS on 2009-01-16)</option>
<option
  
  value="RJBS/Email-Valid-0.179"
>0.179
  (RJBS on 2006-11-27)</option>
<option
  
  value="RJBS/Email-Valid-0.178"
>0.178
  (RJBS on 2006-11-25)</option>
<option
  
  value="RJBS/Email-Valid-0.177"
>0.177
  (RJBS on 2006-11-25)</option>
<option
  
  value="RJBS/Email-Valid-0.176"
>0.176
  (RJBS on 2006-07-28)</option>
<option
  
  value="RJBS/Email-Valid-0.175"
>0.175
  (RJBS on 2006-06-24)</option>
<option
  
  value="RJBS/Email-Valid-0.174"
>0.174
  (RJBS on 2006-06-19)</option>
<option
  
  value="RJBS/Email-Valid-0.173"
>0.173
  (RJBS on 2006-06-16)</option>
<option
  
  value="RJBS/Email-Valid-0.172"
>0.172
  (RJBS on 2006-06-13)</option>
<option
  
  value="RJBS/Email-Valid-0.171"
>0.171
  (RJBS on 2006-06-10)</option>
<option
  
  value="RJBS/Email-Valid-0.170"
>0.170
  (RJBS on 2006-06-09)</option>
<option
  
  value="RJBS/Email-Valid-0.16"
>0.16
  (RJBS on 2006-06-02)</option>
<option
  
  value="MAURICE/Email-Valid-0.13"
>0.13
  (MAURICE on 2001-01-16)</option>
<option
  
  value="MAURICE/Email-Valid-0.12"
>0.12
  (MAURICE on 1999-07-09)</option>
<option
  
  value="MAURICE/Email-Valid-0.08"
>0.08
  (MAURICE on 1999-01-19)</option>
<option
  
  value="MAURICE/Email-Valid-0.07"
>0.07
  (MAURICE on 1999-01-13)</option>
</optgroup>
</select>
    </li>

    <li>
<ul class="dependencies">
  <li class="nav-header">Dependencies</li>
  <li><a href="https://metacpan.org/pod/Capture::Tiny" title="Capture::Tiny" class="ellipsis">Capture::Tiny</a></li>
  <li><a href="https://metacpan.org/pod/Carp" title="Carp" class="ellipsis">Carp</a></li>
  <li><a href="https://metacpan.org/pod/File::Spec" title="File::Spec" class="ellipsis">File::Spec</a></li>
  <li><a href="https://metacpan.org/pod/IO::File" title="IO::File" class="ellipsis">IO::File</a></li>
  <li><a href="./Mail::Address.html" title="Mail::Address" class="ellipsis">Mail::Address</a></li>
  <li><a href="https://metacpan.org/pod/Net::DNS" title="Net::DNS" class="ellipsis">Net::DNS</a></li>
  <li><a href="https://metacpan.org/pod/Net::Domain::TLD" title="Net::Domain::TLD" class="ellipsis">Net::Domain::TLD</a></li>
  <li><a href="https://metacpan.org/pod/Scalar::Util" title="Scalar::Util" class="ellipsis">Scalar::Util</a></li>
  <li><a href="https://metacpan.org/pod/strict" title="strict" class="ellipsis">strict</a></li>
  <li><a href="https://metacpan.org/pod/warnings" title="warnings" class="ellipsis">warnings</a></li>
  <li>
    <hr>
  </li>
  <li>
    <a href="https://metacpan.org/module/Email::Valid/requires">Reverse dependencies</a>
  </li>
  <li>
    <a href="http://deps.cpantesters.org/?module=Email%3A%3AValid">CPAN Testers List</a>
  </li>
  <li>
    <a href="https://cpandeps.grinnz.com/?dist=Email-Valid">Dependency graph</a>
  </li>
</ul>
    </li>
    <li class="nav-header">Permalinks</li>
    <li>
      <a href="https://metacpan.org/release/RJBS/Email-Valid-1.204/view/lib/Email/Valid.pm">This version</a>
    </li>
    <li>
      <a href="./Email::Valid.html">Latest version</a>
    </li>
    <li>
<div class="plussers">
<div class="nav-header">++ed by:</div>
<div>
<a class="display-all" href="https://metacpan.org/author/DROLSKY"><img src="https://www.gravatar.com/avatar/1401e7f176d9e13ad2a9380ecd1f18f6?d=identicon&amp;s=20" title="DROLSKY" alt="DROLSKY"></a>
<a class="display-all" href="https://metacpan.org/author/SZABGAB"><img src="https://www.gravatar.com/avatar/4e0a6fe2acda5df6095514e7d6329e91?d=identicon&amp;s=20" title="SZABGAB" alt="SZABGAB"></a>
<a class="display-all" href="https://metacpan.org/author/KARJALA"><img src="https://www.gravatar.com/avatar/9685932c4be47d9e6370f49230700c40?d=identicon&amp;s=20" title="KARJALA" alt="KARJALA"></a>
<a class="display-all" href="https://metacpan.org/author/AZAWAWI"><img src="https://www.gravatar.com/avatar/70ebafdecf974e15bcaba4cbe39efef1?d=identicon&amp;s=20" title="AZAWAWI" alt="AZAWAWI"></a>
<a class="display-all" href="https://metacpan.org/author/PHIPSTER"><img src="https://www.gravatar.com/avatar/06bb32ae5d904656d37036e271849751?d=identicon&amp;s=20" title="PHIPSTER" alt="PHIPSTER"></a>
</div>
<!-- Display counts of plussers-->
<div>
    <a href="https://metacpan.org/dist/Email-Valid/plussers">23 PAUSE users</a>
</div>
<div>
    10 non-PAUSE users
</div>
</div>
    </li>
    <li>
<div id="metacpan_contributors">
  <div>
    <button class="btn-link"
      onclick="$(this).hide(); $('#metacpan_contributors ul').slideDown(); return false;"
    >and 16 contributors</button>
  </div>
  <ul style="display: none">
    <li class="contributor"
      data-contrib-email="maurice@hevanet.com"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Maurice Aubrey
    </li>
    <li class="contributor"
      data-cpan-author="CHORNY"
      data-contrib-email="alexchorny@gmail.com"
    >
      <a href="https://metacpan.org/author/CHORNY" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/9982a6d902348d1982dd60235724e63c?d=identicon&amp;s=20" />
      Alexandr Ciornii
      </a>
    </li>
    <li class="contributor"
      data-cpan-author="AJNN"
      data-contrib-email="ajnn@cpan.org"
    >
      <a href="https://metacpan.org/author/AJNN" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/c6b09d79060b9715a41d32931f74b635?d=identicon&amp;s=20" />
      Arne Johannessen
      </a>
    </li>
    <li class="contributor"
      data-contrib-email="grinnz@gmail.com"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Dan Book
    </li>
    <li class="contributor"
      data-contrib-email="gene@digilicious.com"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Gene Hightower
    </li>
    <li class="contributor"
      data-cpan-author="JKEENAN"
      data-contrib-email="jkeenan@cpan.org"
    >
      <a href="https://metacpan.org/author/JKEENAN" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/916bcaf0f8dbf1a198589096b293c603?d=identicon&amp;s=20" />
      James E Keenan
      </a>
    </li>
    <li class="contributor"
      data-contrib-email="karel.miko@gmail.com"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Karel Miko
    </li>
    <li class="contributor"
      data-contrib-email="McA@github.com"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      McA
    </li>
    <li class="contributor"
      data-contrib-email="mschout@gkg.net"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Michael Schout
    </li>
    <li class="contributor"
      data-cpan-author="MANWAR"
      data-contrib-email="mohammad.anwar@yahoo.com"
    >
      <a href="https://metacpan.org/author/MANWAR" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/71c853edf567f3482e0e7f21d51e9df2?d=identicon&amp;s=20" />
      Mohammad S Anwar
      </a>
    </li>
    <li class="contributor"
      data-contrib-email="neil@bowers.com"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Neil Bowers
    </li>
    <li class="contributor"
      data-contrib-email="rjbs@semiotic.systems"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Ricardo Signes
    </li>
    <li class="contributor"
      data-cpan-author="STEVEB"
      data-contrib-email="steveb@cpan.org"
    >
      <a href="https://metacpan.org/author/STEVEB" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/bebf51b46401abad7996d726fed9a837?d=identicon&amp;s=20" />
      Steve Bertrand
      </a>
    </li>
    <li class="contributor"
      data-contrib-email="svetlana.wiczer@gmail.com"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Svetlana
    </li>
    <li class="contributor"
      data-contrib-email="troymore@nbnet.nb.ca"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Troy Morehouse
    </li>
    <li class="contributor"
      data-contrib-email="yanick@babyl.dyndns.org"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Yanick Champoux
    </li>
  </ul>
</div>
    </li>
              </ul>
            </div>
          </nav>
          <div class="content-navigation">
<div class="breadcrumbs">
  <span>
    <a data-keyboard-shortcut="g a" rel="author" href="https://metacpan.org/author/RJBS" class="author-name">Ricardo SIGNES 😄</a>
  </span>
  <span>&nbsp;/&nbsp;</span>
  <div class="release dist-release status-latest maturity-released">
    <span class="dropdown"><b class="caret"></b></span>
<select onchange="document.location.href=&#39;/release/&#39;+this.value+&#39;/view/lib/Email/Valid.pm&#39;" class="">
<option
  selected
  value="RJBS/Email-Valid-1.204"
>1.204
  (RJBS on 2024-01-20)</option>
<option
  
  value="RJBS/Email-Valid-1.203"
>1.203
  (RJBS on 2022-05-29)</option>
<option
  
  value="MAURICE/Email-Valid-0.15"
>0.15
  (MAURICE on 2003-09-08)</option>
<option
  
  value="MAURICE/Email-Valid-0.14"
>0.14
  (MAURICE on 2002-07-03)</option>
<optgroup label="BackPAN">'
<option
  
  value="RJBS/Email-Valid-1.202"
>1.202
  (RJBS on 2016-09-26)</option>
<option
  
  value="RJBS/Email-Valid-1.201"
>1.201
  (RJBS on 2016-09-22)</option>
<option
  
  value="RJBS/Email-Valid-1.200"
>1.200
  (RJBS on 2016-03-27)</option>
<option
  
  value="RJBS/Email-Valid-1.199"
>1.199
  (RJBS on 2016-03-27)</option>
<option
  
  value="RJBS/Email-Valid-1.198"
>1.198
  (RJBS on 2015-10-26)</option>
<option
  
  value="RJBS/Email-Valid-1.197"
>1.197
  (RJBS on 2015-10-17)</option>
<option
  
  value="RJBS/Email-Valid-1.196"
>1.196
  (RJBS on 2015-02-06)</option>
<option
  
  value="RJBS/Email-Valid-1.195"
>1.195
  (RJBS on 2014-09-01)</option>
<option
  
  value="RJBS/Email-Valid-1.194"
>1.194
  (RJBS on 2014-05-28)</option>
<option
  
  value="RJBS/Email-Valid-1.193"
>1.193
  (RJBS on 2014-03-27)</option>
<option
  
  value="RJBS/Email-Valid-1.192"
>1.192
  (RJBS on 2013-09-08)</option>
<option
  
  value="RJBS/Email-Valid-1.191"
>1.191
  (RJBS on 2013-09-05)</option>
<option
  
  value="RJBS/Email-Valid-0.190"
>0.190
  (RJBS on 2012-03-27)</option>
<option
  
  value="RJBS/Email-Valid-0.189"
>0.189
  (RJBS on 2012-03-26)</option>
<option
  
  value="RJBS/Email-Valid-0.188"
>0.188
  (RJBS on 2012-03-16)</option>
<option
  
  value="RJBS/Email-Valid-0.187"
>0.187
  (RJBS on 2012-01-27)</option>
<option
  
  value="RJBS/Email-Valid-0.186"
>0.186
  (RJBS on 2012-01-22)</option>
<option
  
  value="RJBS/Email-Valid-0.185"
>0.185
  (RJBS on 2011-08-11)</option>
<option
  
  value="RJBS/Email-Valid-0.184"
>0.184
  (RJBS on 2010-06-11)</option>
<option
  
  value="RJBS/Email-Valid-0.183_001"
>0.183_001 DEV
  (RJBS on 2009-10-05)</option>
<option
  
  value="RJBS/Email-Valid-0.182"
>0.182
  (RJBS on 2009-08-04)</option>
<option
  
  value="RJBS/Email-Valid-0.181"
>0.181
  (RJBS on 2009-03-23)</option>
<option
  
  value="RJBS/Email-Valid-0.180"
>0.180
  (RJBS on 2009-01-16)</option>
<option
  
  value="RJBS/Email-Valid-0.179"
>0.179
  (RJBS on 2006-11-27)</option>
<option
  
  value="RJBS/Email-Valid-0.178"
>0.178
  (RJBS on 2006-11-25)</option>
<option
  
  value="RJBS/Email-Valid-0.177"
>0.177
  (RJBS on 2006-11-25)</option>
<option
  
  value="RJBS/Email-Valid-0.176"
>0.176
  (RJBS on 2006-07-28)</option>
<option
  
  value="RJBS/Email-Valid-0.175"
>0.175
  (RJBS on 2006-06-24)</option>
<option
  
  value="RJBS/Email-Valid-0.174"
>0.174
  (RJBS on 2006-06-19)</option>
<option
  
  value="RJBS/Email-Valid-0.173"
>0.173
  (RJBS on 2006-06-16)</option>
<option
  
  value="RJBS/Email-Valid-0.172"
>0.172
  (RJBS on 2006-06-13)</option>
<option
  
  value="RJBS/Email-Valid-0.171"
>0.171
  (RJBS on 2006-06-10)</option>
<option
  
  value="RJBS/Email-Valid-0.170"
>0.170
  (RJBS on 2006-06-09)</option>
<option
  
  value="RJBS/Email-Valid-0.16"
>0.16
  (RJBS on 2006-06-02)</option>
<option
  
  value="MAURICE/Email-Valid-0.13"
>0.13
  (MAURICE on 2001-01-16)</option>
<option
  
  value="MAURICE/Email-Valid-0.12"
>0.12
  (MAURICE on 1999-07-09)</option>
<option
  
  value="MAURICE/Email-Valid-0.08"
>0.08
  (MAURICE on 1999-01-19)</option>
<option
  
  value="MAURICE/Email-Valid-0.07"
>0.07
  (MAURICE on 1999-01-13)</option>
</optgroup>
</select>
    <a data-keyboard-shortcut="g d" class="release-name" href="https://metacpan.org/dist/Email-Valid">Email-Valid-1.204</a>
  </div>
<span class="river-gauge-gauge">
  <svg width="24px"
       height="15px"
       version="1.1"
       xmlns="http://www.w3.org/2000/svg"
       xmlns:xlink="http://www.w3.org/1999/xlink">

    <g>
      <title>        River stage three &#10;
          • 76 direct dependents &#10;          • 329 total dependents
      </title>

      <rect x="0"  y="0" width="4" height="15" fill="#7ea3f2" />
      <rect x="5"  y="0" width="4" height="15" fill="#7ea3f2" />
      <rect x="10"  y="0" width="4" height="15" fill="#7ea3f2" />
      <rect x="15"  y="0" width="4" height="15" fill="#e4e2e2" />
      <rect x="20"  y="0" width="4" height="15" fill="#e4e2e2" />
    </g>
  </svg>

</span>
<div id="Email-Valid-fav" class="logged_in">
<form action="https://metacpan.org/account/favorite/add" style="display: inline" onsubmit="return favDistribution(this)">
    <input type="hidden" name="remove" value="0">
    <input type="hidden" name="release" value="Email-Valid-1.204">
    <input type="hidden" name="author" value="RJBS">
    <input type="hidden" name="distribution" value="Email-Valid">
    <button type="submit" class="favorite highlight"><span>33</span> ++</button>
</form>
</div>
<div class="logged_out">
<a href="./Email::Valid.html" onclick="alert('Please sign in to add favorites'); return false" class="favorite highlight">
<span>33</span> ++</a>
</div>
   / <span>Email::Valid</span>
</div>
          </div>
          <main class="content">


<nav class="toc">
  <div class="toc-header"><strong>Contents</strong></div>
<ul>
  <li><a href="./Email::Valid.html#NAME">NAME</a></li>
  <li><a href="./Email::Valid.html#VERSION">VERSION</a></li>
  <li><a href="./Email::Valid.html#SYNOPSIS">SYNOPSIS</a></li>
  <li><a href="./Email::Valid.html#DESCRIPTION">DESCRIPTION</a></li>
  <li><a href="./Email::Valid.html#PERL-VERSION">PERL VERSION</a></li>
  <li><a href="./Email::Valid.html#PREREQUISITES">PREREQUISITES</a></li>
  <li><a href="./Email::Valid.html#METHODS">METHODS</a></li>
  <li><a href="./Email::Valid.html#EXAMPLES">EXAMPLES</a></li>
  <li><a href="./Email::Valid.html#CREDITS">CREDITS</a></li>
  <li><a href="./Email::Valid.html#SEE-ALSO">SEE ALSO</a></li>
  <li><a href="./Email::Valid.html#AUTHOR">AUTHOR</a></li>
  <li><a href="./Email::Valid.html#CONTRIBUTORS">CONTRIBUTORS</a></li>
  <li><a href="./Email::Valid.html#COPYRIGHT-AND-LICENSE">COPYRIGHT AND LICENSE</a></li>
</ul></nav>
<div class="pod anchors">
<h1 id="NAME">NAME</h1>

<p>Email::Valid - Check validity of Internet email addresses</p>

<h1 id="VERSION">VERSION</h1>

<p>version 1.204</p>

<h1 id="SYNOPSIS">SYNOPSIS</h1>

<pre><code>  use Email::Valid;
  my $address = Email::Valid-&gt;address(&#39;maurice@hevanet.com&#39;);
  print ($address ? &#39;yes&#39; : &#39;no&#39;);</code></pre>

<h1 id="DESCRIPTION">DESCRIPTION</h1>

<p>This module determines whether an email address is well-formed, and optionally, whether a mail host exists for the domain.</p>

<p>Please note that there is no way to determine whether an address is deliverable without attempting delivery (for details, see <a href="http://perldoc.perl.org/perlfaq9.html#How-do-I-check-a-valid-mail-address">perlfaq 9</a>).</p>

<h1 id="PERL-VERSION"><a id="PERL"></a>PERL VERSION</h1>

<p>This library should run on perls released even a long time ago. It should work on any version of perl released in the last five years.</p>

<p>Although it may work on older versions of perl, no guarantee is made that the minimum required version will not be increased. The version may be increased for any reason, and there is no promise that patches will be accepted to lower the minimum required perl.</p>

<h1 id="PREREQUISITES">PREREQUISITES</h1>

<p>This module requires perl 5.004 or later and the <a href="./Mail::Address.html">Mail::Address</a> module. Either the <a href="https://metacpan.org/pod/Net::DNS">Net::DNS</a> module or the nslookup utility is required for DNS checks. The <a href="https://metacpan.org/pod/Net::Domain::TLD">Net::Domain::TLD</a> module is required to check the validity of top level domains.</p>

<h1 id="METHODS">METHODS</h1>

<p>Every method which accepts an <code>&lt;ADDRESS&gt;</code> parameter may be passed either a string or an instance of the Mail::Address class. All errors raise an exception.</p>

<dl>

<dt id="new-(-[PARAMS]-)"><a id="new"></a><a id="new----PARAMS"></a>new ( [PARAMS] )</dt>
<dd>

<p>This method is used to construct an Email::Valid object. It accepts an optional list of named parameters to control the behavior of the object at instantiation.</p>

<p>The following named parameters are allowed. See the individual methods below for details.</p>

<pre><code> -mxcheck
 -tldcheck
 -fudge
 -fqdn
 -allow_ip
 -local_rules</code></pre>

</dd>
<dt id="mx-(-&lt;ADDRESS&gt;|&lt;DOMAIN&gt;-)"><a id="mx"></a><a id="mx----ADDRESS-DOMAIN"></a>mx ( &lt;ADDRESS&gt;|&lt;DOMAIN&gt; )</dt>
<dd>

<p>This method accepts an email address or domain name and determines whether a DNS record (A or MX) exists for it.</p>

<p>The method returns true if a record is found and undef if not.</p>

<p>Either the Net::DNS module or the nslookup utility is required for DNS checks. Using Net::DNS is the preferred method since error handling is improved. If Net::DNS is available, you can modify the behavior of the resolver (e.g. change the default tcp_timeout value) by manipulating the global <a href="https://metacpan.org/pod/Net::DNS::Resolver">Net::DNS::Resolver</a> instance stored in <code>$Email::Valid::Resolver</code>.</p>

</dd>
<dt id="rfc822-(-&lt;ADDRESS&gt;-)"><a id="rfc822"></a><a id="rfc822----ADDRESS"></a>rfc822 ( &lt;ADDRESS&gt; )</dt>
<dd>

<p>This method determines whether an address conforms to the RFC822 specification (except for nested comments). It returns true if it conforms and undef if not.</p>

</dd>
<dt id="fudge-(-&lt;TRUE&gt;|&lt;FALSE&gt;-)"><a id="fudge"></a><a id="fudge----TRUE-FALSE"></a>fudge ( &lt;TRUE&gt;|&lt;FALSE&gt; )</dt>
<dd>

<p>Specifies whether calls to address() should attempt to correct common addressing errors. Currently, this results in the removal of spaces in AOL addresses, and the conversion of commas to periods in Compuserve addresses. The default is false.</p>

</dd>
<dt id="allow_ip-(-&lt;TRUE&gt;|&lt;FALSE&gt;-)"><a id="allow_ip"></a><a id="allow_ip----TRUE-FALSE"></a>allow_ip ( &lt;TRUE&gt;|&lt;FALSE&gt; )</dt>
<dd>

<p>Specifies whether a &quot;domain literal&quot; is acceptable as the domain part. That means addresses like: <code>rjbs@[1.2.3.4]</code></p>

<p>The checking for the domain literal is stricter than the RFC and looser than checking for a valid IP address, <i>but this is subject to change</i>.</p>

<p>The default is true.</p>

</dd>
<dt id="fqdn-(-&lt;TRUE&gt;|&lt;FALSE&gt;-)"><a id="fqdn"></a><a id="fqdn----TRUE-FALSE"></a>fqdn ( &lt;TRUE&gt;|&lt;FALSE&gt; )</dt>
<dd>

<p>Specifies whether addresses passed to address() must contain a fully qualified domain name (FQDN). The default is true.</p>

<p><b>Please note!</b> FQDN checks only occur for non-domain-literals. In other words, if you have set <code>allow_ip</code> and the address ends in a bracketed IP address, the FQDN check will not occur.</p>

</dd>
<dt id="tld-(-&lt;ADDRESS&gt;-)"><a id="tld"></a><a id="tld----ADDRESS"></a>tld ( &lt;ADDRESS&gt; )</dt>
<dd>

<p>This method determines whether the domain part of an address is in a recognized top-level domain.</p>

<p><b>Please note!</b> TLD checks only occur for non-domain-literals. In other words, if you have set <code>allow_ip</code> and the address ends in a bracketed IP address, the TLD check will not occur.</p>

</dd>
<dt id="local_rules-(-&lt;TRUE&gt;|&lt;FALSE&gt;-)"><a id="local_rules"></a><a id="local_rules----TRUE-FALSE"></a>local_rules ( &lt;TRUE&gt;|&lt;FALSE&gt; )</dt>
<dd>

<p>Specifies whether addresses passed to address() should be tested for domain specific restrictions. Currently, this is limited to certain AOL restrictions that I&#39;m aware of. The default is false.</p>

</dd>
<dt id="mxcheck-(-&lt;TRUE&gt;|&lt;FALSE&gt;-)"><a id="mxcheck"></a><a id="mxcheck----TRUE-FALSE"></a>mxcheck ( &lt;TRUE&gt;|&lt;FALSE&gt; )</dt>
<dd>

<p>Specifies whether addresses passed to address() should be checked for a valid DNS entry. The default is false.</p>

</dd>
<dt id="tldcheck-(-&lt;TRUE&gt;|&lt;FALSE&gt;-)"><a id="tldcheck"></a><a id="tldcheck----TRUE-FALSE"></a>tldcheck ( &lt;TRUE&gt;|&lt;FALSE&gt; )</dt>
<dd>

<p>Specifies whether addresses passed to address() should be checked for a valid top level domains. The default is false.</p>

</dd>
<dt id="address-(-&lt;ADDRESS&gt;-)"><a id="address"></a><a id="address----ADDRESS"></a>address ( &lt;ADDRESS&gt; )</dt>
<dd>

<p>This is the primary method which determines whether an email address is valid. Its behavior is modified by the values of mxcheck(), tldcheck(), local_rules(), fqdn(), and fudge(). If the address passes all checks, the (possibly modified) address is returned as a string. Otherwise, undef is returned. In a list context, the method also returns an instance of the Mail::Address class representing the email address.</p>

</dd>
<dt id="details-()"><a id="details"></a>details ()</dt>
<dd>

<p>If the last call to address() returned undef, you can call this method to determine why it failed. Possible values are:</p>

<pre><code> rfc822
 localpart
 local_rules
 fqdn
 mxcheck
 tldcheck</code></pre>

<p>If the class is not instantiated, you can get the same information from the global <code>$Email::Valid::Details</code>.</p>

</dd>
</dl>

<h1 id="EXAMPLES">EXAMPLES</h1>

<p>Let&#39;s see if the address &#39;maurice@hevanet.com&#39; conforms to the RFC822 specification:</p>

<pre><code>  print (Email::Valid-&gt;address(&#39;maurice@hevanet.com&#39;) ? &#39;yes&#39; : &#39;no&#39;);</code></pre>

<p>Additionally, let&#39;s make sure there&#39;s a mail host for it:</p>

<pre><code>  print (Email::Valid-&gt;address( -address =&gt; &#39;maurice@hevanet.com&#39;,
                                -mxcheck =&gt; 1 ) ? &#39;yes&#39; : &#39;no&#39;);</code></pre>

<p>Let&#39;s see an example of how the address may be modified:</p>

<pre><code>  $addr = Email::Valid-&gt;address(&#39;Alfred Neuman &lt;Neuman @ foo.bar&gt;&#39;);
  print &quot;$addr\n&quot;; # prints Neuman@foo.bar</code></pre>

<p>Now let&#39;s add the check for top level domains:</p>

<pre><code>  $addr = Email::Valid-&gt;address( -address =&gt; &#39;Neuman@foo.bar&#39;,
                                 -tldcheck =&gt; 1 );
  print &quot;$addr\n&quot;; # doesn&#39;t print anything</code></pre>

<p>Need to determine why an address failed?</p>

<pre><code>  unless(Email::Valid-&gt;address(&#39;maurice@hevanet&#39;)) {
    print &quot;address failed $Email::Valid::Details check.\n&quot;;
  }</code></pre>

<p>If an error is encountered, an exception is raised. This is really only possible when performing DNS queries. Trap any exceptions by wrapping the call in an eval block:</p>

<pre><code>  eval {
    $addr = Email::Valid-&gt;address( -address =&gt; &#39;maurice@hevanet.com&#39;,
                                   -mxcheck =&gt; 1 );
  };
  warn &quot;an error was encountered: $@&quot; if $@;</code></pre>

<h1 id="CREDITS">CREDITS</h1>

<p>Significant portions of this module are based on the ckaddr program written by Tom Christiansen and the RFC822 address pattern developed by Jeffrey Friedl. Neither were involved in the construction of this module; all errors are mine.</p>

<p>Thanks very much to the following people for their suggestions and bug fixes:</p>

<pre><code>  Otis Gospodnetic &lt;otis@DOMINIS.com&gt;
  Kim Ryan &lt;kimaryan@ozemail.com.au&gt;
  Pete Ehlke &lt;pde@listserv.music.sony.com&gt;
  Lupe Christoph
  David Birnbaum
  Achim
  Elizabeth Mattijsen (liz@dijkmat.nl)</code></pre>

<h1 id="SEE-ALSO"><a id="SEE"></a>SEE ALSO</h1>

<p><a href="./Mail::Address.html">Mail::Address</a>, <a href="https://metacpan.org/pod/Net::DNS">Net::DNS</a>, <a href="https://metacpan.org/pod/Net::Domain::TLD">Net::Domain::TLD</a>, <a href="https://metacpan.org/pod/distribution/perlfaq/lib/perlfaq9.pod">perlfaq9</a></p>

<p><a href="https://www.ietf.org/rfc/rfc0822.txt">RFC822</a> - standard for the format of ARPA internet text messages. Superseded by <a href="https://www.ietf.org/rfc/rfc2822.txt">RFC2822</a>.</p>

<h1 id="AUTHOR">AUTHOR</h1>

<p>Maurice Aubrey &lt;maurice@hevanet.com&gt;</p>

<h1 id="CONTRIBUTORS">CONTRIBUTORS</h1>

<ul>

<li><p>Alexandr Ciornii &lt;alexchorny@gmail.com&gt;</p>

</li>
<li><p>Arne Johannessen &lt;ajnn@cpan.org&gt;</p>

</li>
<li><p>Dan Book &lt;grinnz@gmail.com&gt;</p>

</li>
<li><p>Gene Hightower &lt;gene@digilicious.com&gt;</p>

</li>
<li><p>James E Keenan &lt;jkeenan@cpan.org&gt;</p>

</li>
<li><p>Karel Miko &lt;karel.miko@gmail.com&gt;</p>

</li>
<li><p>McA &lt;McA@github.com&gt;</p>

</li>
<li><p>Michael Schout &lt;mschout@gkg.net&gt;</p>

</li>
<li><p>Mohammad S Anwar &lt;mohammad.anwar@yahoo.com&gt;</p>

</li>
<li><p>Neil Bowers &lt;neil@bowers.com&gt;</p>

</li>
<li><p>Ricardo Signes &lt;rjbs@semiotic.systems&gt;</p>

</li>
<li><p>Steve Bertrand &lt;steveb@cpan.org&gt;</p>

</li>
<li><p>Svetlana &lt;svetlana.wiczer@gmail.com&gt;</p>

</li>
<li><p>Troy Morehouse &lt;troymore@nbnet.nb.ca&gt;</p>

</li>
<li><p>Yanick Champoux &lt;yanick@babyl.dyndns.org&gt;</p>

</li>
</ul>

<h1 id="COPYRIGHT-AND-LICENSE"><a id="COPYRIGHT"></a>COPYRIGHT AND LICENSE</h1>

<p>This software is copyright (c) 1998 by Maurice Aubrey.</p>

<p>This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.</p></div>

<div id="metacpan_install-instructions-dialog" class="modal fade">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
        <h4 class="modal-title">Module Install Instructions</h4>
      </div>
      <div class="modal-body">
        <p>To install Email::Valid, copy and paste the appropriate command in to your terminal.</p>
        <p><a href="https://metacpan.org/dist/App-cpanminus/view/bin/cpanm">cpanm</a></p>
        <pre><code>cpanm Email::Valid</code></pre>
        <p><a href="https://metacpan.org/pod/CPAN">CPAN shell</a></p>
        <pre><code>perl -MCPAN -e shell
install Email::Valid</code></pre>
        <p>For more information on module installation, please visit <a href="https://www.cpan.org/modules/INSTALL.html">the detailed CPAN module installation guide</a>.</p>
      </div>
      <div class="modal-footer">
        <a href="./Email::Valid.html#" data-dismiss="modal" class="btn">Close</a>
      </div>
    </div>
  </div>
</div>
          </main>
          <div class="content-pagination">
          </div>
        </div>
        <footer class="footer">
          <div class="footer-container">
            <div class="footer-social">
              <div class="footer-link footer-logo">
                <a href="https://metacpan.org/">
                  <img src="https://metacpan.org/static/images/metacpan-logo.svg" alt="MetaCPAN" />
                </a>
              </div>
              <a class="footer-social-link" href="https://github.com/metacpan">
                <i class="fab fa-github-square"></i>
              </a>
              <a class="footer-social-link" href="https://fosstodon.org/@metacpan">
                <i class="fab fa-mastodon"></i>
              </a>
            </div>
            <div class="footer-links">
              <div class="footer-link">
                  <a href="https://metacpan.org/about">About</a>
              </div>
              <div class="footer-link">
                  <a href="https://metacpan.org/about/sponsors">Sponsor</a>
              </div>
              <div class="footer-link">
                  <a href="https://grep.metacpan.org">grep::cpan</a>
              </div>
              <div class="footer-link">
                  <a href="https://metacpan.org/recent">Recent</a>
              </div>
              <div class="footer-link">
                  <a href="https://metacpan.org/about/faq">FAQ</a>
              </div>
              <div class="footer-link">
                  <a href="https://metacpan.org/tools">Tools</a>
              </div>
              <div class="footer-link">
                  <a href="https://fastapi.metacpan.org/">API</a>
              </div>
              <div class="footer-link">
                  <a href="https://www.perl.org/">Perl.org</a>
              </div>
            </div>
            <div class="footer-sponsors">
              <a class="footer-sponsor-link" target="_blank" href="https://www.bytemark.co.uk/" rel="noopener">
                <img class="footer-sponsor-bytemark" src="https://metacpan.org/static/images/sponsors/bytemark_logo.svg" alt="Bytemark logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://www.liquidweb.com/" rel="noopener">
                <img class="footer-sponsor-liquidweb" src="https://metacpan.org/static/images/sponsors/liquidweb_logo.png" alt="liquidweb logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://deriv.com/careers/" rel="noopener">
                <img class="footer-sponsor-deriv" src="https://metacpan.org/static/images/sponsors/deriv.svg" alt="Deriv logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://geocode.xyz" rel="noopener">
                <img class="footer-sponsor-geocode" src="https://metacpan.org/static/images/sponsors/geocodelogo.svg" alt="Geocode logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://www.fastly.com/" rel="noopener">
                <img class="footer-sponsor-fastly" src="https://metacpan.org/static/images/sponsors/fastly_logo.svg" alt="Fastly logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://opencagedata.com" rel="noopener">
                <img class="footer-sponsor-opencage" src="https://metacpan.org/static/images/sponsors/open-cage.svg" alt="OpenCage logo">
              </a>
            </div>
          </div>
        </footer>
        <div class="modal fade" tabindex="-1" role="dialog" id="metacpan_keyboard-shortcuts">
          <div class="modal-dialog">
            <div class="modal-content">
              <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal">&times;</button>
                <h4 class="modal-title">Keyboard Shortcuts</h4>
              </div>
              <div class="modal-body row">
<div class="col-md-6">
  <table class="table keyboard-shortcuts">
    <thead>
      <tr>
        <th></th>
        <th>Global</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td class="keys">
          <kbd>s</kbd>
        </td>
        <td>Focus search bar</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>?</kbd>
        </td>
        <td>Bring up this help dialog</td>
      </tr>
    </tbody>
  </table>

  <table class="table keyboard-shortcuts">
    <thead>
      <tr>
        <th></th>
        <th>GitHub</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>p</kbd>
        </td>
        <td>Go to pull requests</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>i</kbd>
        </td>
        <td>go to github issues (only if github is preferred repository)</td>
      </tr>
    </tbody>
  </table>
</div>

<div class="col-md-6">
  <table class="table keyboard-shortcuts">
    <thead>
      <tr>
        <th></th>
        <th>POD</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>a</kbd>
        </td>
        <td>Go to author</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>c</kbd>
        </td>
        <td>Go to changes</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>i</kbd>
        </td>
        <td>Go to issues</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>d</kbd>
        </td>
        <td>Go to dist</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>r</kbd>
        </td>
        <td>Go to repository/SCM</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>s</kbd>
        </td>
        <td>Go to source</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>b</kbd>
        </td>
        <td>Go to file browse</td>
      </tr>

    </tbody>
  </table>
</div>

<div class="col-md-12">
  <table class="table keyboard-shortcuts">
    <thead>
      <tr>
        <th></th>
        <th>Search terms</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><em>module:</em> (e.g. <a href="https://metacpan.org/search?q=module%3APlugin">module:Plugin</a>)</td>
      </tr>
      <tr>
        <td><em>distribution:</em> (e.g. <a href="https://metacpan.org/search?q=distribution%3ADancer+auth">distribution:Dancer auth</a>)</td>
      </tr>
      <tr>
        <td><em>author:</em> (e.g. <a href="https://metacpan.org/search?q=author%3ASONGMU+Redis">author:SONGMU Redis</a>)</td>
      </tr>
      <tr>
        <td><em>version:</em> (e.g. <a href="https://metacpan.org/search?q=version%3A1.00">version:1.00</a>)</td>
      </tr>
    </tbody>
  </table>
</div>
              </div>
              <div class="modal-footer"></div>
            </div>
          </div>
        </div>
    </body>
</html>
